package edu.szu.huhanpeng.doodlingFight.globalConst 
{
	import edu.szu.huhanpeng.doodlingFight.AppFacade;
	import flash.geom.Point;
	/**
	 * ...
	 * @author Huhanpeng
	 */
	public class Setting 
	{
		public const DEBUG:Boolean = (AppFacade.getInstance() as Object)["debug"] != null ? AppFacade.getInstance().debug : false;
		public const GOLDEN_WIDTH:int = 618;
		public const GOLDEN_HEIGHT:int = 382
		
		
		//淡入淡出时间,单位为 秒
		public const FADEIN:int = .1;
		public const FADEOUT:int = .1;
		
		//舞台
		public const STAGE_COLOR:int = 0x000000;
		//舞台大小
		//public const STAGE_WIDTH:int = 1024;
		//public const STAGE_HEIGHT:int = 768;		
		public const STAGE_WIDTH:int = 800;
		public const STAGE_HEIGHT:int = 600;
		
		//窗口相关
		//游戏窗口
		public const GAME_WINDOW_NAME:String = "gameWindow";
		//public const GAME_WINDOW_WIDTH:int = 600;
		//public const GAME_WINDOW_HEIGHT:int = 620;		
		public const GAME_WINDOW_WIDTH:int = 500;
		public const GAME_WINDOW_HEIGHT:int = 520;
		public const GAME_WINDOW_X:int = PLAYER_WINDOW_WIDTH;
		public const GAME_WINDOW_Y:int = 0;	
		
		//玩家窗口
		//public const PLAYER_WINDOW_WIDTH:int = 214;
		public const PLAYER_WINDOW_WIDTH:int = 150;
		public const PLAYER_WINDOW_HEIGHT:int = STAGE_HEIGHT;
		//玩家1窗口
		public const P_ONE_WINDOW_NAME:String = "PLAYER ONE";
		public const P_ONE_WINDOW_X:int = 0;
		public const P_ONE_WINDOW_Y:int = 0;		
		//玩家2窗口
		public const P_TWO_WINDOW_NAME:String = "PLAYER TWO";
		public const P_TWO_WINDOW_X:int = PLAYER_WINDOW_WIDTH + GAME_WINDOW_WIDTH;
		public const P_TWO_WINDOW_Y:int = 0;	
		
		//信息窗口
		public const MSG_WINDOW_NAME:String = "MESSAGE";
		//public const MSG_WINDOW_WIDTH:int = 600;
		//public const MSG_WINDOW_HEIGHT:int = 148;	
		public const MSG_WINDOW_WIDTH:int = 500;
		public const MSG_WINDOW_HEIGHT:int = 80;
		public const MSG_WINDOW_X:int = PLAYER_WINDOW_WIDTH;
		public const MSG_WINDOW_Y:int = GAME_WINDOW_HEIGHT;
		
		//欢迎面板
		public const WELCOME_PANEL_WIDTH:int = 150;
		public const WELCOME_PANEL_HEIGHT:int = 230;
		//public const WELCOME_PANEL_X:int = ( STAGE_WIDTH - WELCOME_PANEL_WIDTH ) / 2;
		//public const WELCOME_PANEL_Y:int = ( STAGE_HEIGHT - WELCOME_PANEL_HEIGHT ) / 2;	
		public const WELCOME_PANEL_X:int = 642;
		public const WELCOME_PANEL_Y:int = 65;
		//欢迎面板按钮
		public const WELCOME_BUTTON_WIDTH:int = 100;
		public const WELCOME_BUTTON_HEIGHT:int = 30;
		public const WELCOME_X_GAP:int = ( WELCOME_PANEL_WIDTH - WELCOME_BUTTON_WIDTH ) / 2;
		public const WELCOME_Y_GAP:int = ( WELCOME_PANEL_HEIGHT - WELCOME_BUTTON_HEIGHT * 3 ) / 4;
		//三个按钮中的第一个
		public const OP_BUTTON_LABEL:String = "单人游戏";
		public const OP_BUTTON_X:int = WELCOME_X_GAP;
		public const OP_BUTTON_Y:int = WELCOME_Y_GAP;
		//三个按钮中的第二个
		public const TP_BUTTON_LABEL:String = "双人游戏";
		public const TP_BUTTON_X:int = WELCOME_X_GAP;
		public const TP_BUTTON_Y:int = WELCOME_Y_GAP * 2 + WELCOME_BUTTON_HEIGHT;
		//三个按钮中的第三个
		public const SETTING_BUTTON_LABEL:String = "设置";
		public const SETTING_BUTTON_X:int = WELCOME_X_GAP;
		public const SETTING_BUTTON_Y:int = WELCOME_Y_GAP * 3 + WELCOME_BUTTON_HEIGHT * 2;
		
		
		
		

		
		
		public const CHESS_TYPE:int = 8;	//棋子类型,不能小于4.否则destroyDone可能会失败而抛出错误
		
		public const CHESSBOARD_SIZE:int = 10;  //棋盘规格为size*size矩形
		
		public const CHESS_SIZE:Number = 30;	//棋子大小，圆形为直径，方形为边长
		
		public const CHESS_SCALE:Number = 0.3;	//棋子缩放比例，初始大小为100
		
		public const LU_POINT:Point = new Point(10, 10);  //棋盘左上角点
		
		public const OFFSET:Number = 10;
		
	}

}